package aochulai.qisiren;

import baseFx.springboot.FxMvcConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

@Configuration
public class MvcBean extends FxMvcConfig {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        super.addResourceHandlers(registry);
        if ("1".equals(System.getProperty("prod", "")) == false) {
//        registry.addResourceHandler("/**").addResourceLocations("file:D:\\Source\\qisiren-java\\src\\main\\resources\\static\\");
            registry.addResourceHandler("/**").addResourceLocations("file:D:\\Code\\qisiren-java\\src\\main\\resources\\static\\");
        }
    }
}
